import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../view/Home'
import Timer from '../view/Timer'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/timer'
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/timer',
    component: Timer
  }
]

const router = new VueRouter({
  routes
})

export default router
